package com.example.tijianserver.service;

import com.example.tijianserver.mapper.HospitalMapper;
import com.example.tijianserver.pojo.Hospital;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class HospitalServiceImpl implements HospitalService{
    @Autowired
    HospitalMapper hospitalMapper;

    //获取医院信息
    @Override
    public List<Hospital> listHospital(Hospital hospital) {
        return hospitalMapper.listHospital(hospital);
    }

    @Override
    public Hospital selectByPrimaryKey(Integer hpId) {
        return hospitalMapper.selectByPrimaryKey(hpId);
    }
}
